package com.guoxue.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.guoxue.dao.IUpdateDao;
import com.guoxue.domain.UpdateTableVo;
import com.guoxue.service.IUpdateService;
@Service("updateService")
public class UpdateServiceImpl implements IUpdateService {
	@Resource
	private IUpdateDao updateDao;

	@Override
	public void saveUpdate(UpdateTableVo update) {
		updateDao.saveUpdate(update);
	}

	@Override
	public void delete() {
		updateDao.delete();
	}

	@Override
	public List<UpdateTableVo> getUpdateTableList(String versionCode) {
		return updateDao.getUpdateTableList(versionCode);
	}

	@Override
	public UpdateTableVo getUpdateTableByVersionCodeAndBookName(String version_Code, String bookName) {
		return updateDao.getUpdateTableByVersionCodeAndBookName(version_Code,bookName);
	}
	
}
